using System;

namespace bOS.XML
{
	public class XMLAttribute 
	{
		string sName;
		string sValue;

		public XMLAttribute(string _Name, string _Value)
		{
			sName = _Name;
			sValue = _Value;
		}

		public XMLAttribute(string _Name, int _Value)
		{
			sName = _Name;
			sValue = _Value.ToString();
		}

		public XMLAttribute(string _Name, long _Value)
		{
			sName = _Name;
			sValue = _Value.ToString();
		}

		public string GetXML()
		{
			string sXml=sName;
			sXml+="=\"";
			sXml+=XMLNode.getValueTranscoded (ref sValue);
			sXml+="\"";

			return sXml;
		}
	}
}
